package org.hepeng.hope.entity

import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test

internal class RoleTest {

    @Test fun equalsTest() {
        val r1 = Role("开发者" , "devloper" , "开发者角色").apply {
            createTime = 1577371801873
            deleteFlag = false
            id = 1
        }
        println("role-1 hash = ${r1.hashCode()} , role-1 : $r1")

        val r2 = Role("开发者" , "devloper" , "开发者角色").apply {
            createTime = 1577371801873
            deleteFlag = false
            id = 1
        }
        println("role-2 hash = ${r2.hashCode()}")


        assertTrue(r1.equals(r2))
    }


}